﻿
@*Kong Yang
Internet Catalog*@


@{
    ViewBag.Title = "Display";
}

@{
    InternetCatalog.Models.MeMeDBContext db = new InternetCatalog.Models.MeMeDBContext();
    //Database1Entities db = new test2.Database1Entities();
}
@using (Html.BeginForm())
{
    <table border="1">
        <thead>
            <tr>
                <th>Title</th>
                <th>ImageURL</th>
                <th>Discription</th>
                <th>Genre</th>

            </tr>
        </thead>
        <tbody>
            @foreach (var item in db.Images.All)
            {
                <tr>
                    <td><img src="~/Im2/@item.imageUrl" width="100" height="100" /></td>
                    @*<td><img src="~/Im2/*" width="100" height="100" /></td>*@
                    <td>@item.Title</td>
                    <td>@item.ImageURL</td>
                    <td>@item.Discription</td>
                    <td>@item.Genre</td>
                </tr>
            }
        </tbody>
    </table>
}

